{% extends "mainPage.html" %}
{% load static %}

{% block main_body %}
<link rel="stylesheet" href="{% static 'css/login.css' %}">
<div class="container">
    <div class="form">
        <h2>域账号登录</h2>
        <form action="{% url 'login' %}" method="POST" enctype="multipart/form-data">
            {% csrf_token %}
            <div class="inputBox">
                <input type="text" name="username" placeholder="姓名">
            </div>
            <div class="inputBox">
                <input type="password" name="password" placeholder="密码">
            </div>
            <div class="inputBox">
                <input type="hidden" name ="next" value="{{next_url}}">
            </div>
            <div class="inputBox">
                <input type="submit" value="登录">
            </div>
            <p class="forget">{{ res_info }}</p>
        </form>
    </div>
</div>
{% endblock %}

